import React, {Component} from 'react';
import {
	Dimensions,
} from 'react-native';
import {setSpText,scaleHeight} from '../js/component/ScreenUtil';
//屏幕信息
var dimensions = require('Dimensions');
//获取屏幕的宽度
const WIN_WIDTH = Dimensions.get('window').width;
var width = WIN_WIDTH/2;

export default  function(){

	let textFontSize=global.styles.fontSize;
	let btnFontSize=textFontSize - 6;

	return{
		container: {
			flex: 1,
		},
		flex:{
			flex:1
		},
		items: {
			flexDirection: 'row',
			alignItems: 'center',
			margin: 5
		},
		textStyle: {
			fontSize: setSpText(textFontSize),
			color: 'black',
			marginLeft: 5,
			marginRight: 5
		},
		saveText: {
			fontSize: setSpText(btnFontSize),
			alignSelf: 'center',
			color: '#FFF'
		},
		valueStyle:{
			fontSize: setSpText(textFontSize),
			marginRight: 10
		},
		btnStyle: {
			fontSize:setSpText(global.styles.fontSize),
			marginTop:10
		},
		inputStyle:{
			flex:0.9,
			fontSize:setSpText(textFontSize),
			marginRight: 10
		},
		listItem:{
			marginLeft:8,
			marginTop: 5,
			marginBottom:5,
			fontSize: setSpText(textFontSize)
		},
		headerText:{
			flex:1,
			fontSize:setSpText(global.styles.fontSize),
			fontWeight:"bold",
			textAlign:"right",
			marginTop:5,
			marginRight:10,
		},
		oneBtn: {
			padding: 5,
			borderRadius: 5,
		},
		oneBox: {
			padding: 10,
			flexDirection: 'row',
			alignItems: 'center',
		},
		modalContainer:{
			flex: 1,
			justifyContent: 'center',
			padding: 40,
		},
		innerContainer: {
			borderRadius: 10,
			alignItems: 'center',
		},
		tips:{
			textAlign: 'center',
			marginBottom: 5,
			fontSize: 14
		},
		settingStyle:{
			flexDirection:'row',
			justifyContent:'space-between',
			width:width - 10,
		},
		textInput: {
			height: scaleHeight(global.styles.TextInputHeigth),
			width: width*1.1,
			marginBottom: 5,
			backgroundColor: 'white',
			textAlign: 'center',
			borderRadius:5
		},
	}
}


